package com.yequan.mq.config;

import com.yequan.exe.core.ExeExecutor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yq
 * @date 2020/09/29
 */
@Configuration
@ComponentScan("com.yequan")
@EnableConfigurationProperties(Properties.class)
public class ExeConfiguration {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    public ExeExecutor getExeExecutor() {
        return new ExeExecutor();
    }

}
